
function init(){
	var itemBox = document.getElementById('itemBox');
	var a;
	var aList = itemBox.getElementsByTagName('a');
	for(var i = 0;i<aList.length;i++){
		a = aList[i];
		a.onfocus = focusInput;
		a.onblur = blurInput;
		a.onclick = clickInput;
	}
	aList[0].focus();
	aList[0].click();
}

function focusInput(event){
	var a = event.currentTarget;
	var par = a.parentNode;
	par.className = 'curInput';
}

function blurInput(event){
	var a = event.currentTarget;
	var par = a.parentNode;
	par.className = 'input';
}

function clickInput(event){
	var a = event.currentTarget;
	var id = a.id;
	KEYBOARD.show({
			id: id,
	});
}